Compiler warning fixes.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 16 Jan 2006 22:06:00 +0000 (22:06 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 16 Jan 2006 22:06:00 +0000 (22:06 +0000)
gpsbabel/Makefile
gpsbabel/compegps.c
gpsbabel/cst.c

index e45d607654701a3ac70485ba1a21d02a19c6a637..e98558f5de23ee12c90dcb8e6889d5c582edf35b 100644 (file)
@@ -221,7 +221,7 @@ gdb.o: gdb.c defs.h queue.h gbtypes.h garmin_tables.h jeeps/gpsmath.h \
   jeeps/gpsproj.h jeeps/gpsnmeafmt.h jeeps/gpsnmeaget.h
 geo.o: geo.c defs.h queue.h gbtypes.h xmlgeneric.h
 geoniche.o: geoniche.c defs.h queue.h gbtypes.h coldsync/palm.h \
-  coldsync/pdb.h
+  coldsync/pdb.h jeeps/gpsmath.h
 globals.o: globals.c defs.h queue.h gbtypes.h
 glogbook.o: glogbook.c defs.h queue.h gbtypes.h xmlgeneric.h
 google.o: google.c defs.h queue.h gbtypes.h xmlgeneric.h
index bbdaea47e60e1bac47b7501e29b36d7ae9ad0bd6..ed0cf7c574419875a3ad86c58bf93d74e0883b53 100644 (file)
@@ -105,7 +105,7 @@ static waypoint*
 parse_wpt(char *buff)
 {
        int col = -1;
-       char *c, *cend, *cx;
+       char *c, *cx;
        waypoint *wpt = waypt_new();
 
        c = strstr(buff, "A ");
@@ -331,7 +331,7 @@ compegps_data_read(void)
 {
        char buff[1024];
        int line = 0;
-       waypoint *wpt;
+       waypoint *wpt = NULL;
        route_head *route = NULL;
        route_head *track = NULL;
        
index e707c3cd38e0536a04f5dac20e75cf58ac12fbc7..5026a3bca7e2466e9b1121c2ebc5b8e2e6835436 100644 (file)
@@ -204,7 +204,6 @@ cst_data_read(void)
                                if (*cin == ';')
                                {
                                        int data = 0;
-                                       int note = 0;
                                        
                                        if (*(cin+1) != '\xA4') continue;
                                        
@@ -242,7 +241,6 @@ cst_data_read(void)
                                        int interp, i;
                                        char name[256];
                                        char *pow;
-                                       int column = 0;
                                        
                                        if (data_lines < 0)
                                        {
@@ -265,7 +263,7 @@ cst_data_read(void)
                                                &wpt->longitude, 
                                                &wpt->latitude, 
                                                &wpt->altitude,
-                                               &interp, &name))
+                                               &interp, name))
                                        {
                                                fatal(MYNAME ": Could not interprete line %d!\n", line);
                                        }